<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
 xmlns:admin="http://webns.net/mvcb/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>PhilRandolph.com</title>
<description>Blogging about Notes/Domino Development, Detroit Red Wings Hockey and Family</description>
<link>http://philrandolph.com/philrandolph/philrandolph.nsf/</link>
<language>en-us</language>
<lastBuildDate>Fri, 7 Jan 2011 13:39:00 -0500</lastBuildDate>
<item>
<title>Initializing Author and Reader Fields in XPages</title>
<pubDate>Fri, 7 Jan 2011 13:39:00 -0500</pubDate>
<description>
<![CDATA[ 
Ok, sharing time once again....<br /><br />I've learned from various sources that while you may create Author and/or Reader type fields in a simple fo ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/01072011122100PMHOSPJ7.htm</link>
<category>Xpages</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/01072011122100PMHOSPJ7.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/01072011122100PMHOSPJ7.htm</guid>
<content:encoded><![CDATA[ Ok, sharing time once again....<br /><br />I've learned from various sources that while you may create Author and/or Reader type fields in a simple form design element which will be used as a datasource for an XPage or Custom Control, when you go to save the datasource the "special" field flags of the Author/Reader field will not be set. You have set the flags specifically (but only once when the fields are initially set/saved.) <br /><br />What I've created is a simple function in a script library which can be called in the postSaveDocument event of the datasource on the XPage or Custom Control.<br /><br />Here's the function:<br /><blockquote>function setupAuthorReaderFields(doc, authorField, readerField)<br /></blockquote><blockquote>{<br />&nbsp;&nbsp;&nbsp; var authitem:NotesItem = doc.getFirstItem(authorField);<br />&nbsp;&nbsp;&nbsp; // only do below work if the Authors field has not been setup as an "Authors" type field initially<br />&nbsp;&nbsp;&nbsp; if (!authitem.isAuthors())<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var readitem:NotesItem = doc.getFirstItem(readerField);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; authitem.setAuthors(true);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; readitem.setReaders(true);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; doc.save();<br />&nbsp;&nbsp;&nbsp; }<br />}<br /></blockquote><br />It assumes you have one author type field and one reader type field, and also requires a handle to the datasource (doc).<br /><br />As you can see, it checks to see if the author field already has the flag set, and if so, doesn't do anything else - so we're not setting the flags and saving the datasource each time, just the first time.<br /><br />Here's the code I have in the postSaveDocument event on one of my Custom Controls, so you can see how I got the parameter values ready to pass in to the function:<br /><blockquote>var doc:NotesDocument = DeptDoc.getDocument();<br />var authorField = "docAuthors";<br />var readerField = "docReaders";<br />setupAuthorReaderFields(doc, authorField, readerField);<br /></blockquote>Obviously you may have a more complicated setup with multiple author or reader fields, or sometime just one or the other, this is just a simple example to start from.<br /><br />I'd welcome any feedback, corrections or enhancements you may want to chip in to make this an even better solution. ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/01072011122100PMHOSPJ7.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/01072011122100PMHOSPJ7.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>An XPages Gotcha or &#8217;I just want to cancel, is that so wrong?&#8217;</title>
<pubDate>Fri, 3 Dec 2010 11:41:00 -0500</pubDate>
<description>
<![CDATA[ 
I'm working on an XPages app with one of the XPages doing a conglomeration of a View Table at the top, a Document with backend datasource based on the ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/12032010104148AMHOSML7.htm</link>
<category>Xpages</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/12032010104148AMHOSML7.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/12032010104148AMHOSML7.htm</guid>
<content:encoded><![CDATA[ I'm working on an XPages app with one of the XPages doing a conglomeration of a View Table at the top, a Document with backend datasource based on the selected (clicked) view entry in the top view, and then a hideable/showable toggle for a view of related documents to the main document selected.&nbsp; That clear as mud?? Good!<br /><br />Well, the problem I was having is that I had a Cancel button as one of the actions available with the document shown in the middle of the page, which when clicked would clear the sessionScope variable (a document UNID) that determined which document showed there, and then gave a different panel indicating that no document had yet been selected to act upon.<br /><br />All of that was visibly working, which was good, but something wierd would happen if you put the document in to edit mode and then clicked the cancel button, and subsequently picked a new document to operate upon (either in read or edit mode).&nbsp; Some of the field values would hold on to data from the previous document's (which had been in edit mode) values, unless you clicked a second time on the view entry column that was the clickable link, at which point the field values would reflect the data from the new document UNID.<br /><br />What I determined was that my Cancel button was defined as a "Cancel" type button and by virtue of that by default had the checkbox set for "Do not validate or update data" in the server options on the event.&nbsp; Not quite sure which of those things were making my app do what it was doing, but my fix (whether the right one or not), was to change the button type to merely "Button".&nbsp; Once this change was in place, all of the previously working navigational and scope variable modification functionality continued to work, but more importantly, I wasn't having to do a second click on the view entry link to get the right data showing in the document section of the page.<br /><br />Hallelujah!<br /><br />If anyone is more attuned to what happens behind the scenes on a "Cancel" type button in XPages and can explain to me what I may have been doing wrong, or how some different settings would have been a better fix, please let me know.<br /><br />Hope this helps someone down the line.&nbsp; This was certainly a relief to find a fix to after quite a bit of time spent trying to figure out what was causing it. ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/12032010104148AMHOSML7.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/12032010104148AMHOSML7.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>The streak stands at 1 year!</title>
<pubDate>Fri, 29 Oct 2010 20:33:00 -0500</pubDate>
<description>
<![CDATA[ 
Just knocked out the set that completes 1 full year of doing 100 push-ups each day!<br /><br />Just to give it a definitive note, I went for the whole ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/10292010073339PMHOS2P4.htm</link>
<category>100 Pushups</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/10292010073339PMHOS2P4.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/10292010073339PMHOS2P4.htm</guid>
<content:encoded><![CDATA[ Just knocked out the set that completes 1 full year of doing 100 push-ups each day!<br /><br />Just to give it a definitive note, I went for the whole 100 in one shot, and made it fairly easily!&nbsp; I've accomplished that 3 times now, 2 of them in the last 2 weeks.<br /><br />Thanks for the encouragement to keep the streak going this long.&nbsp; I have no intentions of stopping here! ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/10292010073339PMHOS2P4.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/10292010073339PMHOS2P4.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>New Fine Art</title>
<pubDate>Wed, 29 Sep 2010 08:43:00 -0500</pubDate>
<description>
<![CDATA[ 
Some of the latest art created by my kids:<br /><br />Katelyn:<br /><div style="margin-bottom: 10px;"><img src="http://images.artsonia.com/art/large/ ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/09292010074342AMHOSGXD.htm</link>
<category>Zach</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/09292010074342AMHOSGXD.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/09292010074342AMHOSGXD.htm</guid>
<content:encoded><![CDATA[ Some of the latest art created by my kids:<br /><br />Katelyn:<br /><div style="margin-bottom: 10px;"><img  src="http://images.artsonia.com/art/large/10011456.jpg" alt="" border="2" height="307" width="450"></div><br />Zach:<br /><div style="margin-bottom: 10px;"><img  src="http://images.artsonia.com/art/large/9818107.jpg" alt="" border="2" height="449" width="450"><div style="margin-bottom: 10px;"><img  src="http://images.artsonia.com/art/large/9989630.jpg" alt="" border="2" height="447" width="450"><br /><br />Great job! I'm so proud of the work done by both of you!<br /></div></div><img  src="http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/file:///C:/DOCUME%7E1/d1pjr21/LOCALS%7E1/Temp/moz-screenshot.png/$file/file:///C:/DOCUME%7E1/d1pjr21/LOCALS%7E1/Temp/moz-screenshot.png" alt=""><img  src="http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/file:///C:/DOCUME%7E1/d1pjr21/LOCALS%7E1/Temp/moz-screenshot-1.png/$file/file:///C:/DOCUME%7E1/d1pjr21/LOCALS%7E1/Temp/moz-screenshot-1.png" alt=""> ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/09292010074342AMHOSGXD.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/09292010074342AMHOSGXD.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>300!</title>
<pubDate>Thu, 26 Aug 2010 07:49:00 -0500</pubDate>
<description>
<![CDATA[ 
I've kept on keeping on, and now the 100 push-ups per day streak stands at <strong>300 days</strong>.<br /><br />I'm also just a couple hundred (less ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08262010064909AMHOSFVA.htm</link>
<category>100 Pushups</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08262010064909AMHOSFVA.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08262010064909AMHOSFVA.htm</guid>
<content:encoded><![CDATA[ I've kept on keeping on, and now the 100 push-ups per day streak stands at <strong>300 days</strong>.<br /><br />I'm also just a couple hundred (less than a week) away from having done 50,000 push-ups since beginning this journey in September 2008 - <a href="http://spreadsheets.google.com/ccc?key=0AuhXFNy5XQ_qcEFaRkJBT0JvNkM0cEJPbjd1TmR5Y3c&amp;hl=en" target="_blank">see spreadsheet</a>.<br /><br />I looked back at the <a href="http://philrandolph.com/philrandolph/philrandolph.nsf/dx/05192010073900AMHOSGUF.htm" target="_blank">post where I had done the 100 push-ups in one shot</a>, and how I had it in mind to try to repeat this feat once a week, well that hasn't happened, but many days now I just do 2 sets of 50 push-ups less than 5 minutes apart.&nbsp; Its great that I've gotten that far along that I can manage this without straining myself too hard.&nbsp; And it gets done quicker!<br /><br />Thanks everyone for the support along the way.&nbsp; Only 65 days now to make it a full year, and then why stop there?&nbsp; How far do you think I can go? ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/08262010064909AMHOSFVA.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08262010064909AMHOSFVA.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>14th Anniversary</title>
<pubDate>Tue, 17 Aug 2010 08:00:00 -0500</pubDate>
<description>
<![CDATA[ 
Today marks 14 years wonderful years of marriage. If the number 7 is considered lucky, then (2 x 7) must be doubly lucky.<br /><br />I'm so very luck ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08162010070634PMHOS266.htm</link>
<category>Family</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08162010070634PMHOS266.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08162010070634PMHOS266.htm</guid>
<content:encoded><![CDATA[ Today marks 14 years wonderful years of marriage.&nbsp; If the number 7 is considered lucky, then (2 x 7) must be doubly lucky.<br /><br />I'm so very lucky to have as my partner in life a wonderful woman.<br /><br />Thanks Kath for sharing our home, our kids, our laughs, our struggles, our pains and our triumphs.<br /><br />Happy Anniversary! ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/08162010070634PMHOS266.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/08162010070634PMHOS266.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>Goal Reached!</title>
<pubDate>Wed, 19 May 2010 08:39:00 -0500</pubDate>
<description>
<![CDATA[ 
Last night I proved to myself that I indeed can now do 100 consecutive pushups!<br /><br /><a href="http://twitter.com/philrandolph/status/14254102759 ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05192010073900AMHOSGUF.htm</link>
<category>100 Pushups</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05192010073900AMHOSGUF.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05192010073900AMHOSGUF.htm</guid>
<content:encoded><![CDATA[ Last night I proved to myself that I indeed can now do 100 consecutive pushups!<br /><br /><a href="http://twitter.com/philrandolph/status/14254102759" target="_blank">The announcement tweet</a><br /><br />Now that I know I <em>can</em> do it, I want to make sure I can <strong>maintain</strong> the <span style="text-decoration:underline">ability</span> to do it, so I'm going to set a goal to do this at least once a week from Day 200 to Day 300 (assuming I keep the streak alive).<br /><br />Thanks again for everyone's support along the way during this endeavor, and special thanks to those who challenged me to go for the full goal! ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/05192010073900AMHOSGUF.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05192010073900AMHOSGUF.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>200!</title>
<pubDate>Tue, 18 May 2010 09:10:00 -0500</pubDate>
<description>
<![CDATA[ 
As I tweeted last night, my latest workout put me at 200 days in a row doing a 100 pushups (or more) workout.<br /><br />Here's the <a href="http://sp ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05182010081031AMHOSHG5.htm</link>
<category>100 Pushups</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05182010081031AMHOSHG5.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05182010081031AMHOSHG5.htm</guid>
<content:encoded><![CDATA[ As I tweeted last night, my latest workout put me at 200 days in a row doing a 100 pushups (or more) workout.<br /><br />Here's the <a href="http://spreadsheets.google.com/ccc?key=0AuhXFNy5XQ_qcEFaRkJBT0JvNkM0cEJPbjd1TmR5Y3c&amp;hl=en" target="_blank">Google spreadsheet</a> I've been maintaining to keep my workout numbers and see how far they accumulate.&nbsp; I'm oh so close to the 40,000 pushup plateau!<br /><br />In response to my tweet I received an @reply last night asking "how many consecutive pushups can you do now?"<br /><br />Honestly, I still don't know for sure, but I might take this question as a challenge to find out sooner than later.&nbsp; May even give it a try tonight! ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/05182010081031AMHOSHG5.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/05182010081031AMHOSHG5.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>What would you say it is?</title>
<pubDate>Sat, 13 Mar 2010 11:24:00 -0500</pubDate>
<description>
<![CDATA[ 
<div style="margin-bottom: 10px;">A recently created piece of art by Katie:<br /><br /><img src="http://images.artsonia.com/art/la ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03132010102445AMHOSM9J.htm</link>
<category>Art</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03132010102445AMHOSM9J.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03132010102445AMHOSM9J.htm</guid>
<content:encoded><![CDATA[ 		     	 		 			 			<div style="margin-bottom: 10px;">A recently created piece of art by Katie:<br /><br /><img  src="http://images.artsonia.com/art/large/8394481.jpg" alt="" width="450" border="2" height="304"><br /><br />I'm thinking it's a squirrel or a groundhog...&nbsp; Nice garden setting.<br /></div> ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/03132010102445AMHOSM9J.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03132010102445AMHOSM9J.htm?opendocument&amp;comments</wfw:comment>
</item>
<item>
<title>An Excellent Season</title>
<pubDate>Thu, 11 Mar 2010 10:44:00 -0500</pubDate>
<description>
<![CDATA[ 
Just wanted to pop in quick to say how proud I am of my son's hockey team's accomplishments this year. <br /><br />For this being their first year at ...
 ]]>
</description>
<link>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03112010094440AMHOSLGG.htm</link>
<category>Hockey</category>
<dc:creator>Phil Randolph</dc:creator>
<comments>http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03112010094440AMHOSLGG.htm?opendocument&amp;comments</comments>
<guid isPermaLink="true">http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03112010094440AMHOSLGG.htm</guid>
<content:encoded><![CDATA[ Just wanted to pop in quick to say how proud I am of my son's hockey team's accomplishments this year.&nbsp; <br /><br />For this being their first year at the Squirt level, and all of them being birth-year 2000 players except for our goalie, I think they did a remarkable job playing in the A2 Squirt Division and compiling a record of 10 wins, 3 losses and 3 ties.<br /><br />They were able to beat the previously 'undefeated in the division' team which ended up going 15-1 in the division in a 2-1 decision.&nbsp; They ended up as the 2nd seed going into the playoffs and won against the 3rd seed (of all '99 birth-year players) to make it to the finals.&nbsp; They met up with the 15-1 team (also a mix of '99 and '00 birth-years) in the finals and while they didn't win the game and playoff banner (lost 3-1), it wasn't for lack of trying.<br /><br />They won a tournament (which I wasn't able to be at because of Lotusphere 2010) in Pittsburgh in January, and they did well at 2 others ones.&nbsp; Now that we are past the regular season and the playoffs, they still have one more post-season tournament this coming weekend fairly close by in Mentor (so we don't need to stay out of town - which is nice!)&nbsp; Hoping that they do well at this one too, to put an extra exclamation point on this great season.<br /><br />Nice thing about birth-year teams is that a lot of the time, they play together as a group and with the same coaches for several years in a row, and I think that's what will be happening with us.&nbsp; The cohesiveness they've built this year should be able to carry on to next season when they will be the 'older' birth-year players at the Squirt level.<br /><br /><strong>Congrats again for a great season Strongsville Mustangs Squirt 00-1 Team!</strong> ]]></content:encoded>
<wfw:commentRss> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dxcomments/03112010094440AMHOSLGG.htm</wfw:commentRss>
<wfw:comment> http://hostit1.connectria.com/philrandolph/philrandolph.nsf/dx/03112010094440AMHOSLGG.htm?opendocument&amp;comments</wfw:comment>
</item>
</channel></rss>
